package net.cloudsun.graph.core;

import java.util.ArrayList;

/**
 * 加权边list
 *
 * @author Ryan
 * @since
 */
public class WeightedEdgeList extends ArrayList<WeightedEdge> {

    public WeightedEdgeList(WeightedEdge... edges) {
        super(edges == null ? 0 : edges.length);
        if (edges != null) {
            for(WeightedEdge edge : edges) {
                this.add(edge);
            }
        }
    }
}
